<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
<head>
  <title>Spring Security Example </title>
</head>
<body>
<div th:if="${param.error}">
  Invalid username and password.
</div>
<div th:if="${param.logout}">
  You have been logged out.
</div>
<form th:action="@{/dologin}" method="post">
  <div><label>用户名: <input type="text" name="username" value="admin"/> </label></div>
  <div><label>密&nbsp;&nbsp;码: <input type="password" name="password" value="123456"/> </label></div>
  <div><input type="submit" value="Sign In"/></div>
</form>
</body>
</html>